#ifndef LINFOSCREEN_H_
#define LINFOSCREEN_H_

#include <MAUI/Screen.h>
#include <MAUI/Layout.h>
#include <MAUI/Label.h>
#include <MAUtil/Environment.h>

#include "../DAOS/DTO.h"
#include "../DAOs/LINFOProcessor.h"
#include "../Widgets/ScrollPane.h"

using namespace MAUI;

class LINFOScreen : public Screen, public LINFOListener, public TimerListener
{
	public:
		LINFOScreen();
		~LINFOScreen();

		void itemReceived(LINFOItem& item);
		void processingComplete();

		void keyPressEvent(int keyCode, int nativeCode);

		void pointerPressEvent(MAPoint2d point);
		void pointerReleaseEvent(MAPoint2d point);

		void setIsGetData(bool value);

		void setCompanyId(String& value);
		void setCompanyName(const String& value);

		void show();

		void runTimerEvent();

	private:
		LINFOProcessor* mProcessor;
		Layout* mLayout;
		Label* mTitle;
		Label* mResult;
		ScrollPane* panel;
		Widget *softKeys;
		String companyId;
		bool isGetData;
		bool isWaitingTime;
		bool isLiveTime;
};

#endif /* LINFOSCREEN_H_ */
